const itembank = require('../../utils/itembank.js');
var app = getApp();
Page({
  data: {
    isVip: true,
    chartTitle: '优势Top5',
    userInfo: {},
    hasUserInfo: false,
    listData: [],
  },
  onLoad: function() {

    this.setData({
      userInfo: app.globalData.userInfo,
      hasUserInfo: true
    })
    var result = wx.getStorageSync('myResult');
    if (result) {
      var listData = itembank.marking(result);
      this.setData({
        listData: listData
      });
    }

  },
  gotoTest: function(e) {
    wx.navigateTo({
      url: '/pages/explain/explain',
    })
  },
  getVip: function() {
    this.setData({
      isVip: true,
    })
  },
  toShare: function() {

  }

});